package com.have.blog.search.pojo.document;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.util.Date;

/**
 * Created By Have
 * 2021/7/20 14:06
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Document(indexName = "blog", createIndex = true)
public class BlogDocument {
    @Id
    private Long uid;
    private String title;
    private String summary;
    private String content;
    private Long clickCount;
    private Long collectCount;
    private Long coverUid;
    private Boolean status;
    private Date createTime;
    private Date updateTime;
    private Long adminUid;
    private Boolean isOriginal;
    private String author;
    private Integer articlesCitations;
    private Integer blogCategoryUid;
    private Boolean level;
    private Boolean isPublish;
    private Integer sortCount;
    private Boolean openComment;
    private Boolean type;
    private String outsideLink;
    private Long userUid;
    private Integer articleSource;
}